<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>管理员登录</title>
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"/>
    <script src="https://cdn.bootcss.com/jquery/3.2.0/jquery.min.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

<style>
    .form-signin{
        width:360px;
        margin-left: 30%;
        text-align: center;
    }
    .form-signin input{
        margin-top: 10px;
        text-align: center;
    }

    .form-signin button {
        margin-top: 20px;
        /*margin-left:40%;*/
    }

</style>
</head>
<body>


<div class="container" style="margin-top:100px;">
    <form class="form-signin" th:action="@{/admin/loginup}" method="post">
        <h2>管理员登录</h2> <!--<p th:text="${status}"></p>-->
        <label for="inputEmail" class="sr-only">Email address</label>
        <input type="text" name="name" id="inputEmail" class="form-control" placeholder="用户名" required="required" autofocus="autofocus"/>
        <label for="inputPassword" class="sr-only">Password</label>
        <input type="password" name="password" id="inputPassword" class="form-control" placeholder="密码" required="required"/>
        <button class="btn btn-lg btn-primary " type="submit">登录</button>

    </form>
</div>

<script th:inline="javascript">
//    console.log([[${status}]]);
    var msg = [[${status}]];
    if(msg !== null){
        alert(msg);
    }
</script>

</body>
</html>